package dobest.ray.com.jiongjiong.activity.mumingleshi;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import dobest.ray.com.jiongjiong.R;
import dobest.ray.com.jiongjiong.activity.BaseActivity;
import dobest.ray.com.jiongjiong.views.NavigationBar;

/**
 * Created by Ray on 2016/4/30.
 * https://github.com/ray0807
 */
public class BindDeviceListActivity extends BaseActivity implements View.OnClickListener {
    private TextView tv_bind_mmls;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bind_devices_list);
        findViews();
        init();
        addListeners();
    }

    @Override
    public void findViews() {
        navi = (NavigationBar) findViewById(R.id.navi);
        navi.setTitle("选择绑定的设备");
        navi.setBackListener(R.mipmap.img_back, "");

        tv_bind_mmls = (TextView) findViewById(R.id.tv_bind_mmls);
    }

    @Override
    public void init() {

    }

    @Override
    public void addListeners() {
        tv_bind_mmls.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        Intent it = null;
        switch (v.getId()) {
            case R.id.tv_bind_mmls:
                it = new Intent(this, BindDeviceActivity.class);
                break;
        }
        if (it != null) {
            startActivity(it);
        }
    }
}
